package com.onefinger.manager.managers
{
	import com.onefinger.manager.views.model.BaseCRUDModel;
	
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class BaseManager extends EventDispatcher
	{
		//.................state......................
		private var _stateIndex:String=BaseCRUDModel.CREATING;
		[Bindable(Event="stateIndexChange")]
		public function get stateIndex():String
		{
			return _stateIndex;
		}
		
		public function setStateIndex(path:String):void
		{
			_stateIndex=path;			
			dispatchEvent( new Event( "stateIndexChange" ) );
		}
	}
}